// main.ts
import { createApp } from 'vue'

// 引入路由组件
import router from './router'
import pinia from './stores'
// import store from './store' //导入vuex
import ElementPlus from 'element-plus'
// 引入仓库
import pinia from './stores'




import 'element-plus/dist/index.css'
import App from './App.vue'
import Header from '@/components/header/index.vue'
import Footer from '@/components/fotter/index.vue'
import Carousel from '@/components/Carousel/index.vue'

// 引入mockServer 文件,让他里面代码需要执行一次
import './mock/mockServer'
const app = createApp(App)
app.component('Header', Header)
app.component('Footer', Footer)
app.component('Carousel', Carousel)
// app.component('Video',Video)
import zhCn from 'element-plus/es/locale/lang/zh-cn'

app.use(ElementPlus, {

    locale: zhCn,
  }).use(router).use(pinia).mount('#app')




